export default [
    {
        path: "/",
        component: () => import('~/pages/index.vue')
    },
    {
        path: "/about",
        component: () => import('~/pages/about/index.vue')
    },
    {
        path: "/agreement",
        component: () => import('~/pages/agreement/index.vue')
    },
    {
        path: "/article",
        component: () => import('~/pages/article/index.vue')
    },
    {
        path: "/article/detail/:id",
        component: () => import('~/pages/article/detail/[id].vue')
    },
    {
        path: "/close",
        component: () => import('~/pages/close/index.vue')
    },
    {
        path: "/login",
        component: () => import('~/pages/login/index.vue'),
        meta: {
            layout: false,
            middleware: ['login']
        }
    },
    {
        path: "/login/forget",
        component: () => import('~/pages/login/forget.vue'),
        meta: {
            layout: false,
            middleware: ['login']
        }
    },
    {
        path: "/login/register",
        component: () => import('~/pages/login/register.vue'),
        meta: {
            layout: false,
            middleware: ['login']
        }
    },
    {
        path: "/login/wechat",
        component: () => import('~/pages/login/wechat.vue'),
        meta: {
            layout: false,
            middleware: ['login']
        }
    },
    {
        path: "/search",
        component: () => import('~/pages/search/index.vue')
    },
    {
        path: "/user/center",
        component: () => import('~/pages/user/center.vue'),
        meta: {
            auth: true,
            middleware: ["auth"],
        }
    },
    {
        path: "/user/set",
        component: () => import('~/pages/user/set.vue'),
        meta: {
            auth: true,
            middleware: ["auth"],
        }
    }
];